package com.bdqn.ssm.entity;

import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by Administrator on 2017/2/13.
 */
@Component
public class Student {
    private Integer sid;
    private String sname;
    private Character sex;
    private Integer age;
    private Date birthday;
    private Double salary;
    private Clazz clazz;

    public Student() {
    }



    public Student(Integer sid, String sname, Character sex, Integer age, Date birthday, Double salary, Clazz clazz) {
        this.sid = sid;
        this.sname = sname;
        this.sex = sex;
        this.age = age;
        this.birthday = birthday;
        this.salary = salary;
        this.clazz = clazz;
    }

    public Student(String sname, Character sex, Integer age, Date birthday, Double salary, Clazz clazz) {
        this.sname = sname;
        this.sex = sex;
        this.age = age;
        this.birthday = birthday;
        this.salary = salary;
        this.clazz = clazz;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Character getSex() {
        return sex;
    }

    public void setSex(Character sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public Clazz getClazz() {
        return clazz;
    }

    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", birthday=" + birthday +
                ", salary=" + salary +
                ", clazz=" + clazz +
                '}';
    }
}
